package com.wxl.common.room.dao

import androidx.room.*
import com.wxl.common.room.entity.CollectorBean

@Dao
interface CollectorDao {

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertCollector(vararg mCollector: CollectorBean)

    @Update
    fun updateCollector(vararg mCollector:CollectorBean)

    @Delete
    fun deleteCollector(vararg mCollector: CollectorBean)

    @Query("select * from collector")
    fun queryCollector() :List<CollectorBean>
}